package cn.yang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user_answers
 */
@TableName(value ="user_answers")
@Data
public class UserAnswers {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "question_id")
    private Integer questionId;

    /**
     * 
     */
    @TableField(value = "selected_option")
    private String selectedOption;

    /**
     * 
     */
    @TableField(value = "is_correct")
    private Integer isCorrect;

    /**
     * 
     */
    @TableField(value = "answered_at")
    private Date answeredAt;
}